home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / Apple関連 / MRJ 1.5 Install / MRJ Disk 1 / About MRJ next >
Text File  |  1997-07-12  |  16KB  |  200 lines

  1. ð
  2. About Mac OS Runtime for Javaェ
  3. Version 1.5
  4.  
  5.  
  6.  
  7.  
  8. Introduction
  9. Mac OS Runtime for Java (MRJ) is Appleユs implementation of the Java runtime environment based on software from Sun Microsystems, Inc. Mac OS applications adapted to use MRJ can run Java applets and applications.
  10.  
  11. MRJ 1.5 implements version 1.0.2 of Sunユs Java. MRJ 1.5 includes Apple Applet Runner, a standalone application that runs Java applets, and Apple Applet Viewer, an OpenDoc viewer you use to put Java applets into OpenDoc documents. 
  12.  
  13. MRJ 1.5 is a major upgrade to MRJ 1.0.2 that significantly improves Java's graphic performance on the Mac OS. It also includes Apple's Just-In-Time compiler (JITC) that provides further, dramatic speed improvement on PowerPC microprocessors. A JITC for 68030 and 68040 machines is being developed, but is not yet available.
  14.  
  15. IMPORTANT The Applets menu in Apple Applet Runner includes a set of applets provided by Sun Microsystems, Inc. These applets were not created by Apple Computer, Inc. and may not follow Apple guidelines for user interaction. For example, buttons in an applet may have different behavior from buttons in applications developed specifically for the Mac OS.
  16.  
  17. System requirements
  18. MRJ 1.5 works on computers with 68030, 68040 or PowerPC microprocessors. You also need System 7.5 or later, a minimum of 8 MB of RAM (16 MB is strongly recommended) and at least 7 MB of free disk space. Computers with 68030 or 68040 microprocessors must have 32-bit addressing turned on. This can be done by using the Memory control panel.
  19.  
  20. The Apple Applet Viewer requires OpenDoc 1.0.4 or later. To get OpenDoc, see the OpenDoc Web page at <http://www.opendoc.apple.com/>. MRJ 1.5 and the Apple Applet Runner do not require OpenDoc.
  21.  
  22. Using Java applets over the Internet requires MacTCP 2.0.4 or later, or OpenTransport 1.1 or later with TCP/IP, and an active Internet connection.
  23.  
  24. MRJ 1.5 works with Cyberdog 1.2.1 or later. See the Cyberdog Web page at <http://www.cyberdog.apple.com/> for more information.
  25.  
  26. Whatユs Installed with MRJ?
  27. The MRJ 1.5 installer places the required software components in your System Folder. If necessary, the installer will force you to restart your computer before using MRJ.
  28.  
  29. WARNING: If you have been using a pre-release version of MRJ, you need to remove files installed with the pre-release version before installing version 1.5. Use the list below to check the files you need to remove. However, do not remove the file named メText Encoding Converterモ or the folder named メText Encodings.モ 
  30.  
  31. On all computers, MRJ 1.5 installs:
  32. ・ Mac OS Runtime for Java folder in the Apple Extras folder at the root of the startup disk
  33. ・ MRJ Libraries folder in the Extensions folder of the active System Folder
  34. ・ Text Encoding Converter in the Extensions folder of the active System Folder
  35. ・ Text Encodings folder in the active System Folder
  36.  
  37. If you have a 68030 or 68040 computer, MRJ 1.5 also installs:
  38. ・ CFM-68K Runtime Enabler in the Extensions folder of the active System Folder
  39.  
  40. If you have OpenDoc installed, MRJ 1.5 also installs:
  41. ・ Apple Applet Viewer Libraries folder in the Editors folder of the active System Folder
  42.    - this folder contains the Apple Applet Viewer
  43. ・ Apple Applet Viewer Stationery in the Stationery folder at the root of the startup disk
  44.  
  45. Using the Apple Applet Runner produces a preferences file named メApple Applet Runner Prefsモ in the Preferences folder of the active System Folder.
  46.  
  47. Description of MRJ Components
  48. MRJ 1.5 contains the system components necessary to use Java. It also includes two demonstration tools that use these components to run Java applets.
  49.  
  50. System Components
  51. The MRJ 1.5 installer puts a folder named メMRJ Librariesモ in the Extensions folder of the active System Folder. The MRJ Libraries folder contains the MRJLib file, the MRJClasses folder and, on PowerPC computers, the MRJ JITC files.
  52.  
  53. Apple Applet Runner
  54. The MRJ 1.5 installer installs a folder called メApple Applet Runnerモ which contains the Apple Applet Runner application. You can find the Apple Applet Runner folder inside the Mac OS Runtime for Java folder in the Apple Extras folder at the root of your startup disk.
  55.  
  56. You use Apple Applet Runner to run Java applets from your local disk. If you have MacTCP or Open Transport installed and an active Internet connection, you can also run Java applets over the Internet. 
  57.  
  58. You can run Java applets from your local disk by opening URLs or local HTML files containing <applet> tags from the Applet Runnerユs File menu. In addition, you can run Java applets by dropping HTML files containing <applet> tags onto the Apple Applet Runner application icon from the Finder. You will only see the applet itself inside Apple Applet Runner; if you use a Web browser to open the HTML file, you may see additional information.
  59.  
  60. Apple Applet Runner remembers URLs of remote (メhttp://ノモ) or local (メfile:///ノモ) applets. This information is stored in the Apple Applet Runner Prefs file in the Preferences folder of the active System Folder. A few sample URLs are are available by choosing Open URL from the File menu; you may add more URLs if you desire. You must have an active Internet connection to use these remote URLs.
  61.  
  62. Demonstration applets are available under the メAppletsモ menu in Applet Runner. You may run these demonstration applets even if you do not have an active Internet connection. These applets are stored locally in the Applets folder.
  63.  
  64. Apple Applet Runnerユs Properties Dialog
  65. The Properties dialog specifies network and filesystem access and also provides a shortcut to setting some properties that specify network resources. The Properties dialog can also specify if package access and definition should be restricted. To access the Properties dialog, choose メPropertiesモ from the File menu in Apple Applet Runner.
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87. Most users will not need to change the settings. However, if you have special networking or security needs such as a firewall inside your company, you may need to change these settings.
  88.  
  89. Here is a summary of the items in the Properties dialog:
  90. ・ Network Access: No Network - This setting does not allow applets to create sockets.  The applet cannot be a server or a client.
  91. ・ Network Access: Applet Host - This setting restricts applets to only creating sockets on the host machine.
  92. ・ Network Access: Unrestricted - This setting allows applets to create sockets with no network restrictions.
  93. ・ Filesystem Access: No Filesystem - This setting does not allow any applets access to the local filesystem.
  94. ・ Filesystem Access: Local Applets - This setting allows only local applets to have access to the local filesystem.
  95. ・ Filesystem Access: Unrestricted - This setting allows any applet access to the local filesystem.
  96. ・ Restrict Package Access - When checked, this setting prevents applets from accessing native method interfaces. For example, it would not be able to access sun.*, com.apple.*, etc.
  97. ・ Restrict Package Definition - When checked, it prevents applets from making classes or loading classes that might have access to the filesystem.
  98. ・ HTTP Proxy - When checked, the HTTP proxy specified in the corresponding fields (server name/number, port number) will be used when making requests to an HTTP server.
  99. ・ FTP Proxy - When checked, the FTP proxy specified in the corresponding fields (server name/number, port number) will be used when using an FTP server.
  100. ・ Firewall -  When checked, the firewall specified in the corresponding fields (server name/number, port number) will be used in some security checks.  If the the HTTP proxy was unable to resolve a request then it will use the Firewall proxy.
  101. ・ Factory Defaults - Clicking on the Factory Defaults button will reset to the default settings.
  102. ・ Cancel - Clicking on the Cancel button will ignore any of the changes made and close the Applet Properties dialog.
  103. ・ Save - Clicking on the Save button will save the current settings and close the Applet Properties dialog.
  104.  
  105. Apple Applet Viewer (for OpenDoc)
  106. You use Apple Applet Viewer to place Java applets into your OpenDoc documents.
  107.  
  108. A folder called メApple Applet Viewerモ is installed in your Editors folder and the Apple Applet Viewer Stationery file is installed in your Stationery folder. Refer to your OpenDoc documentation for instructions on using stationery.
  109.  
  110. You use Java applets by dragging one of the following to the Apple Applet Viewer frame:
  111. 1. An HTML file that contains an <applet> tag, 
  112. 2. A text file that contains a URL for an HTML document containing an <applet> tag, or
  113. 3. A Scrapbook clipping that contains either a URL for an HTML document containing an <applet> tag or an <applet> tag.
  114.  
  115. Note: You must have an active Internet connection to use applets at remote URLs.
  116.  
  117.  
  118. Tips for Using MRJ
  119.  
  120. Mac OS 8
  121. Mac OS 8 includes MRJ 1.0.2 which is pre-set to install as a standard component of Mac OS 8. If you have already installed MRJ 1.5 and you are installing Mac OS 8, you should de-select MRJ in the installer list of components being installed. If you don't de-select the MRJ install you will get an error message when MRJ 1.0.2 tries to install over MRJ 1.5. If you get to this point you should press the Skip button which will allow you to skip, or bypass, the MRJ 1.0.2 installation and continue with the rest of the Mac OS 8 installation.
  122.  
  123. OpenDoc
  124. If you do not have OpenDoc installed when you install MRJ 1.5, the Apple Applet Viewer will not be installed. If you install OpenDoc later, you must reinstall MRJ to use the Applet Viewer.
  125.  
  126. Memory Usage
  127. MRJ uses system memory to run Java applets and applications. Applications allocate their own application memory, leaving less memory available to the system. If an application that uses MRJ (such as the Applet Runner or Cyberdog) is using an especially large amount of memory, you may have trouble running large Java applets or applications. If you encounter problems, try quitting applications you arenユt using. If you still cannot run the applet or application, try reducing the amount of memory used by the application that is using MRJ. To reduce an applicationユs memory size, first quit the application, then select the applicationユs icon and choose Get Info from the File menu. Type a smaller number in the Preferred Size field. (However, do not set the preferred size smaller than the indicated minimum size).
  128.  
  129. Adding to the Classpath
  130. For some applets, you may need access to classes that are not in the same directory as the applet tag. To allow additional Java classes or zip files to be referenced by MRJ when running an applet, do one of the following:
  131.     ミ In the html document, add a codebase parameter to the applet tag. This technique
  132.        can be used when the classes are either on your disk or on the Internet. Add a parameter
  133.       of the form メcodebase=file:///mydisk/myfolder/myzip.zipモ (for classes on your disk) or
  134.        メcodebase=http://hostname/dirname/theirzip.zipモ (for classes on the Internet)
  135.        to the applet tag that is in the .html file you open with Apple Applet Runner or
  136.        Apple Applet Viewer. See general Java and html references for more details on
  137.        the applet tag format and the codebase parameter.
  138.     ミ Add an alias to the MRJClasses folder. This technique is useful when you have a
  139.        local copy of a .zip file, or a folder with a collection of Java classes, on your disk.
  140.        If the item you wish to add is a .zip file or a folder containing .class files, you can add
  141.        the aliases directly. Put an alias to the item (.zip file or folder) into the MRJ Classes
  142.        folder in the Extensions folder in the active System Folder. To add a single class
  143.        file to the classpath, make an alias to the folder containing the class file and
  144.        put that alias into the MRJ Classes folder.
  145.  
  146. Note: Currently, any MRJ runners or viewers that are open will have to be quit and relaunched for the new classes to be recognized.
  147.  
  148.  
  149. Known Problems
  150. ・ You must restart your computer after installing MRJ. If you attempt to run MRJ without restarting, MRJ may behave in unexpected ways.
  151.  
  152. ・ Do not remove the Text Encodings folder from the System Folder or the Text Encoder Converter file from the Extensions folder. Removing these items may cause problems while using MRJ or using other applications requiring these files.
  153.  
  154. ・ In pre-release versions of MRJ, the preferences file was named メApplet Runner Prefs.モ If you had a pre-release version of MRJ installed, make sure you throw the メApplet Runner Prefsモ file away. (The old file may conflict with preference files created by applet runner applications from other companies.)
  155.  
  156. ・ There is a known problem with the PPCExceptionEnabler extension. This extension is installed by Macintosh Common Lisp (MCL) 3.9. If you have this extension, you must remove it before running MRJ. Future versions of MCL will not require this extension.
  157.  
  158. ・ If you're using Microsoft Internet Explorer, you should use version 3.01 or later.
  159.  
  160. ・ If you are running applications or applets compiled with the JavaSoft 1.0.2 JDK release for Macintosh, you may encounter numerics-related problems. Specifically, floating-point constants (and in some cases computed integer constants) may not be accurate. If possible, use another Java compiler to recompile any applications or applets displaying this problem.
  161.  
  162. ・ If all the images and sounds an applet uses donユt appear, there may not be enough memory available for all the images and sounds. You may be able to free up memory by quitting all applications (such as the Apple Applet Runner and Apple Applet Viewer) that use MRJ. If necessary, try quitting other applications as well. After quitting the applications, try reopening Apple Applet Runner or Apple Applet Viewer. See Memory Usage above for additional information.
  163.  
  164. ・ Some Java applets (such as Clock) or applications that are processor intensive may cause other applets to open or run slowly, or may cause them not to open at all. To improve performance, try closing applets or applications that you are not using.
  165.  
  166. ・ The Apple Applet Viewer does not report some errors. If an applet does not open in Apple Applet Viewer, try opening it with Apple Applet Runner to see if an error message appears.
  167.  
  168. Further Information and Reporting Problems
  169. See our Web site at <http://applejava.apple.com/> to find out about future releases of Mac OS Runtime for Java or get information on how to report problems with the software.
  170.  
  171. Other Applets on the Internet
  172. There are thousands of applets available on the Internet. Two good starting points for finding applets are:
  173. ・ <http://www.javasoft.com/>
  174. ・ <http://www.gamelan.com/>
  175.  
  176. Software Development Kit Available
  177. A software development kit (SDK) is available for MRJ 1.5. The MRJ SDK includes interfaces to the runtime environment that allow software developers to:
  178.  
  179. ・ run Java applets and applications within a Macintosh application
  180. ・ access the Java runtime from a Macintosh application
  181. ・ call Java methods from C and C++
  182. ・ call native methods from Java
  183. ・ build standalone Java applications
  184.  
  185. The SDK also includes a utility to run Java applications.
  186.  
  187. See our Web site at <http://applejava.apple.com/> to get the MRJ SDK.
  188.  
  189. Java not Fault-tolerant
  190. The Java technology is not fault-tolerant and is not designed, manufactured or intended for use or resale as on-line control equipment in the operation of nuclear facilities, aircraft navigation or communication systems, or air traffic control machines in which the failure of the Java technology or Mac OS Runtime for Java could lead directly to death, personal injury, or severe physical or environmental damage.
  191.  
  192.  
  193. ゥ 1995-1997 Apple Computer. Inc. All rights reserved. 
  194. Apple, the Apple logo, MacTCP and Mac are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. PowerPC is a trademark of International Business Machines Corporation, used under license therefrom. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All other product names are trademarks or registered trademarks of their respective holders. Mention of non-Apple products is for information purposes and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance, or use of these products.
  195.  
  196. Updated July 10, 1997
  197.  
  198. 216